package com.zlg.factory.factoryMethod2;

import com.zlg.factory.factoryMethod2.ingredient.Cheese;
import com.zlg.factory.factoryMethod2.ingredient.Clams;
import com.zlg.factory.factoryMethod2.ingredient.Dough;
import com.zlg.factory.factoryMethod2.ingredient.Pepperoni;
import com.zlg.factory.factoryMethod2.ingredient.Sauce;
import com.zlg.factory.factoryMethod2.ingredient.Veggies;

public abstract class Pizza {
	String name;
	Dough dough;
	Sauce sauce;
	Veggies veggies[];
	Cheese cheese;
	Pepperoni pepperoni;
	Clams clam;
	
	/**
	 * @Desc 声明为抽象方法，在这个方法中，我们需要收集披萨所需的原料，而原料当然来自原料工厂！
	 * @author iam1inggu0
	 * @Date 2019年5月10日下午2:48:47
	 */
	abstract void prepare();
	
	
	void bake() {
		System.out.println("Bake for 25 minutes at 350");
	}
	
	void cut() {
		System.out.println("cutting the Pizza into diagonal slices");
	}
	
	void box() {
		System.out.println("Place pizza in official PizzaStore box");
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	


}
